
use lazy_static::lazy_static;
use std::sync::atomic::{AtomicUsize, Ordering};
lazy_static!{
    pub static ref MY_COUNTER:AtomicUsize = AtomicUsize::new(0);   
}

pub fn set_counter(i:usize){
    MY_COUNTER.fetch_add(i,Ordering::SeqCst);
}

pub fn get_counter()->usize{
    MY_COUNTER.load(Ordering::SeqCst)
}